package com.syp.envops.service;

import java.util.LinkedList;
import java.util.List;

import com.syp.envops.domain.vo.ConfigVo;
import com.syp.envops.util.sftp.SftpFile;
import org.springframework.web.multipart.MultipartFile;

public interface ConfigServiceI {

	public List<SftpFile> list(int serverId, String path, boolean recursive);

	public SftpFile get(int serverId, String absolutePath);

	public void save(int serverId, String absolutePath, byte[] content);

	public void rm(int serverId, String absolutePath, boolean isDir);

	public List<ConfigVo> transform(List<SftpFile> sftpFileList, int plevel);

	public void transform(SftpFile sftpFile, int level, LinkedList<ConfigVo> dest);

	public void mkDir(int serverId, String absolutePath);

	public void uploadFile(int serverId, String path, MultipartFile multipartFile);

}
